package com.hm.common.model;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;

import lombok.Getter;
import lombok.Setter;

/**
 * @author shishun.wang
 * @date 2016年5月12日 下午9:33:20
 * @version 1.0
 * @describe
 */
@Setter
@Getter
public class BaseModel implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	@Field("create_user")
	private String createUser;

	@Field("last_update_user")
	private String lastUpateUser;

	@Field("state")
	private int state = 1;

	@Field("create_time")
	private Long createTime = System.currentTimeMillis();

	@Field("lase_update_time")
	private Long laseUpdateTime;

}